package com.nus.application.web.event;

import com.nus.application.ejb.user.EventEjbLocal;
import com.nus.application.web.base.BaseAction;
import com.opensymphony.xwork2.ValidationAware;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;

/**
 *
 * @author T W Ong
 */
public class Event extends BaseAction implements ValidationAware {

       @Inject
    EventEjbLocal eventEjb;

    private List<com.nus.dataaccess.dao.event.Event> eventList;

    private String Message;

    private String event;

    private List<String> items;

    private String item;


    public String getItem() {
		return item;
	}

	public void setItem(String item) {
		this.item = item;
	}

	public List<String> getItems() {
		return items;
	}

	public void setItems(List<String> items) {
		this.items = items;
	}

	public List<com.nus.dataaccess.dao.event.Event> getEventList() {
		return eventList;
	}

	public void setEventList(List<com.nus.dataaccess.dao.event.Event> eventList) {
		this.eventList = eventList;
	}

	public String getMessage() {
		return Message;
	}

	public void setMessage(String message) {
		Message = message;
	}

	public String getEvent() {
		return event;
	}

	public void setEvent(String event) {
		this.event = event;
	}

	public String doregister() {

		items = new ArrayList<String>();
		items.add("Paper");
		items.add("Workshop");
		items.add("Tutorial");
		items.add("Symposium");

    	List<com.nus.dataaccess.dao.event.Event> eventList= eventEjb.listAllEvents();
    	this.setEventList(eventList);

        return SUCCESS;
    }

    public String doregisterconfirm() {

        return SUCCESS;
    }


    public String doregisterpay() {


        return SUCCESS;
    }




    public String doregisterpayconfirm() {


        return SUCCESS;
    }


    @Override
    public void validate() {

    }
}
